package OOday01.HomeWork;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/6 19:54
 */
public class Teacher extends Person{
    double salary;
    Teacher(){

    }
    Teacher(String name,int age,String address,double salary){
        this.name=name;
        this.address=address;
        this.age=age;
        this.salary=salary;
    }
    void Teach(){
        System.out.println(name+"正在上课");
    }
}


